.navbar{
    width: 150px;
    height: calc(100vh - 45px);
    background-color: #333;
    position: absolute;
    top: 45px;
    left: 0;
    padding-top: 20px;
    z-index: 999;
}
.show{
    width: 150px;
    transition: 0.3s;
}
.hide{
    width: 0;
    transition: 0.3s;
    overflow: hidden;
}
.nav{
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #333;
    font-size: 14px;
    padding: 0 20px;
    color: #f1f1f1;
    display: flex;
    justify-content: space-between;
}
.nav:hover{
    background-color: #4d4d4d;
    color: #fff;
}